﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class userAccess:DBbase
    {
        //实例化 DBbase 对象
        DBbase db = new DBbase();

        //用户登录方法
        public int userLogin(string account, string psw)
        {
            string sql = "select * from userAccount where account = '" + account + "' and password = '" + psw + "'";
            return db.returnRowCount(sql);
        }
    }
}
